package com.github.prontera.persistence;

import java.util.List;

import com.github.prontera.MyBatisRepository;
import com.github.prontera.domain.Issue;
import com.github.prontera.domain.IssueAnswer;

/**
 * 问答Dao
 */
@MyBatisRepository
public interface IssueAnswerMapper extends CrudMapper<IssueAnswer>{

	int updateViewCount(Long id);
	
	int updateThumbsUpCount(IssueAnswer issueAnswer);

	IssueAnswer getOne(Long id);

	int updateShareCount(Long id);

	List<IssueAnswer> currentClientVedio(IssueAnswer issueAnswer);

	List<IssueAnswer> findMyIssue(Issue issue);

	List<IssueAnswer> findManage(IssueAnswer entity);

	IssueAnswer findByClientId(Long clientId);

}
